
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>



QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE


class BleDevice;
class MainWindow : public QMainWindow

{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void SlotUpdateProgress(int);

    void on_bleSearchBtn_clicked();

    void on_bleOpBtn_clicked();

    void on_clrLogBtn_clicked();

private slots:
    void slot_ble_state_business(quint16 state);
    void slot_cfdl_dev_login(uint8_t vid, uint16_t pid, uint8_t chid);

    void on_fileBtn_clicked();

    void on_updateBtn_clicked();

    void on_imgFileBtn_clicked();

    void on_opencvBtn_clicked();

private:
    Ui::MainWindow *ui;

    quint16 bleNum = 0;
    bool m_UpdateIsRun = false;

    BleDevice* bleCtrl;

    QString imgPath;
};

#endif // MAINWINDOW_H
